<style>
    #datefilter {
        margin:10px 0;
    }
    .icons{
        transition: all 0.3s linear;
        position: absolute;
        top: -10px;
        right: 10px;
        z-index: 0;
        font-size: 90px;
    }
    .bg-blue{
        background: #3AA5D9;
    }
    .bg-purple{
        background: #A254C9;
    }
    .bg-yellows{
        background: #F1A623;
        color: #FFFFFF;
    }
</style>
<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div class="row">
                        <div class="col-lg-3 col-xs-6">
                            <!-- small box -->
                            <div class="small-box bg-blue">
                                <div class="inner">
                                    <h3>{$count_code}</h3>
                                    <p>防伪码总数量</p>
                                </div>
                                <div class="icons">
                                    <i class="fa fa-qrcode"></i>
                                </div>
                                <a href="track/code" title="防伪码总数量" class="small-box-footer btn-addtabs">
                                    查看更多 <i class="fa fa-arrow-circle-right"></i>
                                </a>
                            </div>
                        </div>
                        <!-- ./col -->
                        <div class="col-lg-3 col-xs-6">
                            <!-- small box -->
                            <div class="small-box bg-green">
                                <div class="inner">
                                    <h3>{$nf_code}</h3>

                                    <p>未查询数量</p>
                                </div>
                                <div class="icons">
                                    <i class="fa fa-th-list"></i>
                                </div>
                                <a href="track/code?find_num=0" title="未查询数量" class="small-box-footer btn-addtabs">
                                    查看更多 <i class="fa fa-arrow-circle-right"></i>
                                </a>
                            </div>
                        </div>
                        <!-- ./col -->
                        <div class="col-lg-3 col-xs-6">
                            <!-- small box -->
                            <div class="small-box bg-purple">
                                <div class="inner">
                                    <h3>{$today_code_history}</h3>

                                    <p>今日查询次数</p>
                                </div>
                                <div class="icons">
                                    <i class="fa fa-bar-chart"></i>
                                </div>
                                <a href="track/history?search_time={:\\fast\\Date::unixtime()}&search_time-operate=>" title="今日查询次数" class="small-box-footer btn-addtabs">
                                    查看更多 <i class="fa fa-arrow-circle-right"></i>
                                </a>
                            </div>
                        </div>
                        <!-- ./col -->
                        <div class="col-lg-3 col-xs-6">
                            <!-- small box -->
                            <div class="small-box bg-yellows">
                                <div class="inner">
                                    <h3>{$today_first_code_history}</h3>

                                    <p>今日查询结果为首次查询</p>
                                </div>
                                <div class="icons">
                                    <i class="fa fa-line-chart"></i>
                                </div>
                                <a href="track/history?search_time={:\\fast\\Date::unixtime()}&search_time-operate=>&status=1" title="今日查询结果为首次查询" class="small-box-footer btn-addtabs">
                                    查看更多 <i class="fa fa-arrow-circle-right"></i>
                                </a>
                            </div>
                        </div>
                        <!-- ./col -->
                    </div>
                    <div class="row">
                        <div class="col-md-3 col-sm-6 col-xs-12">
                            <div class="info-box bg-blue">
                                <span class="info-box-icon"><i class="fa fa-area-chart"></i></span>

                                <div class="info-box-content">
                                    <span class="info-box-text">总查询次数</span>
                                    <span class="info-box-number">{$count_code_history}</span>

                                    <div class="progress">
                                        <div class="progress-bar" style="width: 100%"></div>
                                    </div>
                                    <span class="progress-description">
                                        所有查询次数
                                    </span>
                                </div>
                                <!-- /.info-box-content -->
                            </div>
                            <!-- /.info-box -->
                        </div>
                        <!-- /.col -->
                        <div class="col-md-3 col-sm-6 col-xs-12">
                            <div class="info-box bg-green">
                                <span class="info-box-icon"><i class="fa fa-shopping-bag"></i></span>

                                <div class="info-box-content">
                                    <span class="info-box-text">总产品数</span>
                                    <span class="info-box-number">{$count_product}</span>

                                    <div class="progress">
                                        <div class="progress-bar" style="width: 100%"></div>
                                    </div>
                                    <span class="progress-description">
                                        所有产品数
                                      </span>
                                </div>
                                <!-- /.info-box-content -->
                            </div>
                            <!-- /.info-box -->
                        </div>
                        <!-- /.col -->
                        <div class="col-md-3 col-sm-6 col-xs-12">
                            <div class="info-box bg-purple">
                                <span class="info-box-icon"><i class="fa fa-users"></i></span>

                                <div class="info-box-content">
                                    <span class="info-box-text">总代理商</span>
                                    <span class="info-box-number">{$count_agent}</span>

                                    <div class="progress">
                                        <div class="progress-bar" style="width: 100%"></div>
                                    </div>
                                    <span class="progress-description">
                                        所有总代理商数
                                      </span>
                                </div>
                                <!-- /.info-box-content -->
                            </div>
                            <!-- /.info-box -->
                        </div>
                        <!-- /.col -->
                        <div class="col-md-3 col-sm-6 col-xs-12">
                            <div class="info-box bg-yellows">
                                <span class="info-box-icon"><i class="fa fa-user-circle"></i></span>

                                <div class="info-box-content">
                                    <span class="info-box-text">总分销商数</span>
                                    <span class="info-box-number">{$count_dealer}</span>

                                    <div class="progress">
                                        <div class="progress-bar" style="width: 100%"></div>
                                    </div>
                                    <span class="progress-description">
                                    所有总分销商数
                                  </span>
                                </div>
                                <!-- /.info-box-content -->
                            </div>
                            <!-- /.info-box -->
                        </div>
                        <!-- /.col -->
                    </div>

                    <div class="row">
                        <div class="col-xs-12">
                            <div class="page-header">
                                <h4 class="no-margin">查询趋势</h4>
                            </div>
                            <div id="datefilter">
                                <form action="" role="form" novalidate class="form-inline">
                                    <a href="javascript:;" class="btn btn-primary btn-refresh"><i class="fa fa-refresh"></i></a>
                                    <a href="javascript:;" class="btn btn-success btn-filter">{:__('Today')}</a>
                                    <a href="javascript:;" class="btn btn-success btn-filter">{:__('Yesterday')}</a>
                                    <a href="javascript:;" class="btn btn-success btn-filter">{:__('Last 7 Days')}</a>
                                    <a href="javascript:;" class="btn btn-success btn-filter">{:__('Last 30 Days')}</a>
                                    <a href="javascript:;" class="btn btn-success btn-filter">{:__('Last month')}</a>
                                    <a href="javascript:;" class="btn btn-success btn-filter">{:__('This month')}</a>
                                    <div class="input-group">
                                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                        <input type="text" class="form-control input-inline datetimerange" placeholder="指定日期" style="width:270px;" />
                                    </div>
                                </form>
                            </div>
                            <div id="echart" style="height:400px;width:100%;"></div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
